package com.mvvm.start.lib_login.mvvm.m

import com.mvvm.start.base.bean.UserInfoResult
import com.mvvm.start.common.network.RetrofitHelp
import com.mvvm.start.lib_login.api.LoginApiSercice
import com.mvvm.start.lib_login.bean.to.LoginTo


/**
 * @author lmy
 * @功能: 登录注册的网络层
 * @Creat 2020/12/30 20:09
 * @Compony 465008238@qq.com
 */

object LoginRegisteredRepository  {
    suspend fun login(to: LoginTo): UserInfoResult? {
        return RetrofitHelp.creat<LoginApiSercice>().login(to).data!!
    }
}